<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<head>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/mymain.css"/>
    <style>
        a:hover{
            cursor: pointer;
            text-decoration: none;
        }
    </style>

    <script src="${pageContext.request.contextPath}/js/jquery-2.0.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/unslider.min.js"></script>
</head>

<div class="container header">
    <div class="spantop">
        <div class="span5">
            <div class="logo">
                <a href="/user_indexPage">
                    <img src="${pageContext.request.contextPath}/image/logo.gif" width="240" height="100" alt="权宜购物平台"/>
                </a>
            </div>
        </div>
        <div class="span9">
            <div class="headerAd">
                <img src="${pageContext.request.contextPath}/image/header.jpg" width="320" height="50" alt="正品保障" title="正品保障"/>
            </div>	</div>
        <div class="span10 last">
            <div class="topNav clearfix">
                <ul>
                    <c:if test="${sessionScope.enterUser == null}">
                    <li id="headerLogin" class="headerLogin" style="display: list-item;">
                        <a href="/user_loginPage">登录</a>|
                    </li>
                    <li id="headerRegister" class="headerRegister" style="display: list-item;">
                        <a href="/user_registPage">注册</a>|
                    </li>
                    </c:if>
                    <c:if test="${sessionScope.enterUser != null}">
                    <li id="headerLogin" class="headerLogin" style="display: list-item;">
                            <%--<s:property value="#session.existUser.name"/>--%>
                            ${sessionScope.enterUser.username}
                    |</li>
                    <li id="headerLogin" class="headerLogin" style="display: list-item;">
                        <a href="/myOrders">我的订单</a>
                    |</li>
                    <li id="headerLogout" class="headerLogout" style="display: list-item;">
                        <a href="/user_logout">[退出]</a>|
                    </li>
                    </c:if>
                </ul>
            </div>
            <div class="cart">
                <a  href="/myCart">购物车</a>
            </div>
            <div class="phone">
                客服热线:
                <strong>96008/53277764</strong>
            </div>
        </div>
    </div>
    <div class="spansearch">
        <form class="input-group" id="searchform" action="/getProductsMH" method="post">
            <input type="text" class="form-control" name="pName"/>
            <span class="input-group-btn searchbtn">
				<input type="submit" class="btn" />
			</span>
        </form>
    </div>
    <div class="span24" style="border-radius: 5px;text-decoration: none;">
        <ul class="mainNav">
            <li>
                <a>所有商品类型</a>
                |
            </li>
            <c:forEach items="${sessionScope.categories}" var="cate" varStatus="status">
                    <li>
                        <a href="/findByCid?cid=${cate.cid}&page=1">
                                ${cate.cname}
                        </a>|
                    </li>
            </c:forEach>
            <%--<li style="float: right">
                <a href="/findAllCates">更多>></a>
            </li>--%>
        </ul>
    </div>

</div>